import http from '../utils/httpinterceptor/ajax'

//封装接口

//设备台账
const ledgerPage =(params) => http.get("/equipment/ledger/page",{...params})
const ledgerDel =(params) => http.post("/equipment/ledger/delete",{...params})

//设备检修
const tenancePage =(params) => http.get("/equipment/tenance/page",{...params})
const tenanceDel =(params) => http.post("/equipment/tenance/delete",{...params})

//设备巡检
const inspectionPage =(params) => http.get("/equipment/inspection/page",{...params})
const inspectionDel =(params) => http.post("/equipment/inspection/delete",{...params})

//调度台账
const schedulingParameterPage =(params) => http.get("/Product/SchedulingParameter/page",{...params})
const schedulingParameterDel =(params) => http.post("/Product/SchedulingParameter/delete",{...params})

//盘库信息
const InventoryInformationPage =(params) => http.get("/Product/InventoryInformation/page",{...params})
const InventoryInformationDel =(params) => http.post("/Product/InventoryInformation/delete",{...params})

//出入库 
const OutboundInventoryPage =(params) => http.get("/Product/OutboundInventory/page",{...params})
const OutboundInventoryDel =(params) => http.post("/Product/OutboundInventory/delete",{...params})

//盘库记录 
const InventoryRecordPage =(params) => http.get("/Product/InventoryRecord/page",{...params})
const InventoryRecordDel =(params) => http.post("/Product/InventoryRecord/delete",{...params})

//用水数据 
const WaterDataPage =(params) => http.get("/Energy/WaterData/page",{...params})
const WaterDataDel =(params) => http.post("/Energy/WaterData/delete",{...params})

//药剂消耗 
const MedicamentPage =(params) => http.get("/Energy/Medicament/page",{...params})
const MedicamentDel =(params) => http.post("/Energy/Medicament/delete",{...params})

//介质消耗 
const MediumPage =(params) => http.get("/Energy/Medium/page",{...params})
const MediumDel =(params) => http.post("/Energy/Medium/delete",{...params})

//煤质化验 
const coalqualityPage =(params) => http.get("/coal/coalquality/page",{...params})
const coalqualityDel =(params) => http.post("/coal/coalquality/delete",{...params})

//生产总貌 生产运行状况
const productoverview =(params) => http.get("/product/overview/signal",{...params})

//生产总貌 故障信息
const faultMsg = (params) => http.get("/product/fault/msg",{...params})

//生产总貌
const electricityInfo = (params) => http.get("/product/electricity/info",{...params})

export default{
    ledgerPage,
    ledgerDel,

    tenancePage,
    tenanceDel,

    inspectionPage,
    inspectionDel,

    schedulingParameterPage,
    schedulingParameterDel,

    InventoryInformationPage,
    InventoryInformationDel,

    coalqualityPage,
    coalqualityDel,

    OutboundInventoryPage,
    OutboundInventoryDel,

    InventoryRecordPage,
    InventoryRecordDel,

    WaterDataPage,
    WaterDataDel,

    MedicamentPage,
    MedicamentDel,

    MediumPage,
    MediumDel,

    productoverview,
    faultMsg,
    electricityInfo

}
